package com.zhongcw.test.spring.boot.swagger2.pojp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品实体
 *
 * @author ZCW
 * @createTime 2018/3/28
 * @lastUpdateTime 2018/3/28 ZCW
 */
@Data
@ApiModel("商品实体类")
public class Commodity implements Serializable {

    @ApiModelProperty(value = "商品名称",required = true)
    private String name;
    @ApiModelProperty("商品库存")
    private long inventory;//库存
    @ApiModelProperty("商品价格")
    private BigDecimal price;

    public Commodity() {
    }

    public Commodity(String name) {
        this.name = name;
    }
}
